import 'package:json_annotation/json_annotation.dart';

part 'xmm_coin_goods.g.dart';

@JsonSerializable()
class XmmCoinGoods {
  String? goodsId; //商品id
  String? code; //商品编号
  String? icon; //商品图桥
  String? type; //商品类型
  int? subType;
  double? discount; //折扣
  double? originalPrice; //原价
  double? price; //当前价格
  int? exchangeCoin; //兑换金币数
  int? originalExchangeCoin;
  double? originalPriceRupee; //原价（卢比）
  double? priceRupee;
  double? localPaymentPriceRupee;
  bool? isPromotion; //是否促销
  int? localPayOriginalPrice;
  int? localPayPrice;
  int? sortDesc;
  String? tags; //商品标签

  XmmCoinGoods({
    this.goodsId,
    this.code,
    this.icon,
    this.type,
    this.subType,
    this.discount,
    this.originalPrice,
    this.price,
    this.exchangeCoin,
    this.originalExchangeCoin,
    this.originalPriceRupee,
    this.priceRupee,
    this.localPaymentPriceRupee,
    this.isPromotion,
    this.localPayOriginalPrice,
    this.localPayPrice,
    this.sortDesc,
    this.tags
  });

  factory XmmCoinGoods.fromJson(Map<String, dynamic> json) =>
      _$XmmCoinGoodsFromJson(json);

  Map<String, dynamic> toJson() => _$XmmCoinGoodsToJson(this);
}
